<?php
include($_SERVER['DOCUMENT_ROOT']."/inc/Function_index.php");
$id = isset($_GET['infoid'])?intval($_GET['infoid']):0;
if(!$id){
	echo "<script>window.location.href='infolist.php';</script>";exit;
}
$info = info($_GET['infoid']);
if(!$info){
	echo "<script>window.location.href='infolist.php';</script>";exit;
}
$tpl->assign("info",$info);
$tpl->assign('results',$results);
$tpl->show("info");
?>